home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re SOM & Streams.3 < prev    next >
Encoding:
Internet Message Format  |  1996-07-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: SOM & Streams
  2. Sent:        7/2/96 7:26 AM
  3. Received:    7/3/96 9:22 AM
  4. From:        Scott Daniels, scottdfl@sprynet.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mark,
  9.  
  10. Okay, I think I understand now. Both this wrapper class and the refcounted
  11. wrapper serve the same purpose: automatic garbage collection. The
  12. difference is that there is only one owner in the first case as you
  13. already stated. Thanks again for the info.
  14.  
  15. Scott
  16.  
  17. ----------
  18. > From: Mark Lanett <mlanett@meer.net>
  19. > To: OpenDoc Development Framework Discussion List
  20. <ODF-Interest@CILabs.ORG>
  21. > Subject: Re: SOM & Streams
  22. > Date: Monday, July 01, 1996 1:28 PM
  23. > At 6:32 AM 7/1/96, Scott Daniels wrote:
  24. > >Mark,
  25. > >
  26. > >Thanks for the info, I have enough to go on now. However, I am still
  27. > >puzzled as to why the wrapper class is needed, and why there can be
  28. only
  29. > >one? How does this work & why?
  30. > The wrapper class is not needed; you can create a SOM object and call it
  31. > directly if you wish.
  32. > There can be only one precisely because FW_OSink is *not* reference
  33. > counted. Someone needs to own it; if you create it directly then you own
  34. it
  35. > and are responsible for destroying it. If you create a
  36. FW_PRandomAccessSink
  37. > subclass, then that object owns it. Why would you want to have multiple
  38. > wrapper objects?
  39. > markl
  40. > --
  41. > Mark Lanett, OpenDoc Framework, Apple Computer
  42.